<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
  <th:block th:include="include :: header('重点诉求推荐T')"/>
</head>
<body class="gray-bg">
<div class="container-div">
  <div class="row">
    <div class="col-sm-12 search-collapse">
      <form id="post-form">
        <div class="select-list">
          <ul>
            <li>
              承办单位：<input type="text" name="sbdeptName"/>
            </li>
            <!--                        <li>-->
            <!--                            办理性质：<input type="text" name="sortName"/>-->
            <!--                        </li>-->

            <li>
              <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
                      class="fa fa-search"></i>&nbsp;搜索</a>
              <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
                      class="fa fa-refresh"></i>&nbsp;重置</a>
            </li>
          </ul>
        </div>

      </form>
    </div>

    <div class="btn-group-sm" id="toolbar" role="group">
      <!--            <a class="btn btn-success multiple disabled" onclick="$.operate.editTab()"-->
      <!--               shiro:hasPermission="mTelRcd:process:view">-->
      <!--                <i class="fa fa-plus"></i> 处理-->
      <!--            </a>-->
      <!--            <a class="btn btn-success"  th:onclick="proposed()">-->
      <!--                <i class="fa fa-plus"></i> 新增-->
      <!--            </a>-->
      <!--            <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()"-->
      <!--               shiro:hasPermission="mTelRcd:remove:view">-->
      <!--                <i class="fa fa-remove"></i> 删除-->
      <!--            </a>-->
      <!--            <a class="btn btn-danger multiple disabled" onclick="backAll()"-->
      <!--               shiro:hasPermission="mTelRcd:remove:view">-->
      <!--                <i class="fa fa-remove"></i> 撤回-->
      <!--            </a>-->
    </div>

    <div class="col-sm-12 select-table table-striped">
      <table id="bootstrap-table"></table>
    </div>
  </div>
</div>
<th:block th:include="include :: footer"/>
<script th:src="@{/common/js/common.js}"></script>
<script th:inline="javascript">
  var prefix = ctx + "gaoxin/system/mTelWF";

  $(function () {
    var options = {
      url: prefix + "/cmnFile/specialTwfRecommendListJson",
      sortName: "pkId",
      sortOrder: "desc",
      uniqueId: "PkId",
      // createUrl: prefix+"/cmnFile/add/{id}",
      // updateUrl: "/system/mTelRcd/telbackaudit/{id}",
      // updateUrl: prefix+"/cmnFile/edit/{id}",
      // removeUrl: prefix + "/cmnFile/remove",
      // saveUrl: twfurgent + "/twfurgentAdd/{id}",
      modalName: "重点诉求推荐",
      fixedColumns: true,
      fixedNumber: 1,
      fixedRightNumber: 1,
      columns: [{
        checkbox: true
      },
        {field:'PkId',title:'pkId',visible: false},
        {field:'GetDealPK',title:'telId',visible: false},
        {field:'WorkFormNO',title:'工单编号',align:'left',halign:'center',sortable:true},
        {field:'SetProID',title:'性质',align:'center',formatter:function(value,row,index){return fmtWFormSort(value,row,index);}},
        {field:'WsTopic',title:'主题',align:'left',halign:'center',sortable:true},
        {field:'FmAreaName',title:'属地',align:'left',halign:'center',sortable:true},
        {field:'FromName',title:'来电人',align:'center',sortable:true},
        {field:'FromTelA',title:'来电号码',align:'center',sortable:true},
        {field:'DFmClaName',title:'诉求类别',align:'center',sortable:true},
        {field:'IptTime',title:'创建日期',align:'center',sortable:true},
        {field:'OpenX',title:'公开',align:'center',sortable:true,formatter:function(value,row,index){return fmtWFormOpen(value,row,index);}},
        {field:'WfLimit',title:'办理时限',align:'center'},
        {field:'CrtStepName',title:'当前流程',align:'left',halign:'center'},
        {field:'BackDesc',title:'终结件',align:'center',sortable:true},
        {
          title: '操作',
          align: 'center',
          formatter: function (value, row, index) {
            var actions = [];
            // actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="$.operate.editDialog(\'' + row.pkId + '\')"><i class="fa fa-edit"></i>处理</a> ');
            actions.push('<a class="btn btn-success btn-xs " href="javascript:void(0)" ><i class="fa"></i>操作</a>');
            return actions.join('');
          }
        }]
    };
    $.table.init(options);
  });

</script>
</body>
</html>